import request from '@/utils/request'

export const getList = (id, params) => {
    return request({
        url: `/SeriesRAPI/Vehicle/GetList/${id}`,
        method: 'get',
        params: params
    })
}

export const save = data => {
    return request({
        url: '/SeriesRAPI/Vehicle/Add',
        method: 'post',
        data
    })
}

export const remove = data => {
    return request({
        url: `/SeriesRAPI/Vehicle/Remove`,
        method: 'post',
        data
    })
}

export const getById = id => {
    return request({
        url: `/SeriesRAPI/Vehicle/${id}`,
        method: 'get',
    })
}

//更新车辆图片信息
export const UpdateVehicleImg = (data) => {
  return request({
    url: "/SeriesRAPI/Vehicle/UpdateVehicleImg",
    method: 'post',
    data
  })
}
